﻿$(function(){//延迟加载	
	var searchuserId=$('#searchuserId').val();
	if(searchuserId!=''){
		document.getElementById('userdetailedit').src="toedituser?userId="+searchuserId;
	}
	$('#ss').searchbox({ 
		searcher:function(value,name){ 
//		alert(value + "," + name);
			if(value==''){
				return
			}
			var str=name+'='+value;
			$.ajax({
				url:'searchuserinfo?'+str,
				success:function(data){
					if(data!=''){
						document.getElementById('userdetailedit').src="toedituser?userId="+data.userId;
					}
				}
			});
		},
		menu:'#mm', 
		height:'35px',
		multiline:true,
		prompt:'员工信息', 
	}); 
});